module main;

private import tango.io.Stdout;
private import src.nusd;
private import src.nus;

alias char[] string;

void main( string[] cmdlArgs )
{
  try
  {
    NUS nus;
    
    if ( nus.populate( cmdlArgs[ 1 .. $ ] ) )
    {
      auto nusd = new NUSD( nus );
      nusd.process();
    }
  }
  catch ( Exception e )
  {
    Stdout.formatln( "{0}", e.toString() );
  }
}